package day6;

/**
 * @author oldliu
 * @since 1.0
 */
public class Gou {
    private String name;
    private int health;
    private int love;
    private String sex;
    private String strain;//类别
    public Gou(){

    }

    public Gou(String name, int health, int love, String sex, String strain) {
        this.name = name;
        this.health = health;
        this.love = love;
        this.sex = sex;
        this.strain = strain;
    }
    public void print(){
        System.out.println("这是一只狗，名字叫"+name);
        System.out.println("健康值"+health+".可爱度"+this.love);
        System.out.println("性别是"+this.sex);
        System.out.println("类别"+this.strain);
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }

    public int getLove() {
        return love;
    }

    public void setLove(int love) {
        this.love = love;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }
}
